package com.njtoyo.taxi.admin.mapper.master.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

public enum RechargeState {
    init(0, "init"),
    operated(1, "operated"),
    done(2, "done"),
    cancelled(3, "cancelled"),
    failed(4, "failed"),
    rejected(5, "rejected"),
    front_end_done(6, "front_end_done");

    @EnumValue
    private final int code;
    private final String desc;

    RechargeState(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }
}
